<#include "head_bus.ftl">
<script>
window.onload=function(){
	$("title").html("资金管理-交易明细");
}
function close_operation()
{
	if((navigator.platform == "Win32") || (navigator.platform == "Windows"))
	{
   		 window.opener=null;
   		 window.open('','_self');
    	 window.close();
    }
    else
    {
    	window.location.href="${BASE_PATH}/fund/fund.htm";
    }
}
</script>
<!-- 详情 -->
<div  id="modal-23">
    <div class="modal-dialog modal-870">
        <div class="modal-content plr2">
           <div class="modal-header noborder">
               <a href="#" onclick="close_operation()" class="close" >×</a>   
           </div>
          <div class="modal-body pt0 ">
                <div class="modal-header">
               <h4><span>账户交易记录</span></h4>
           </div>
           <div class="modal-body text-center">
                <div class="plr2 width55">
                    <div class="c-menu text-left c-menu-4">              
                        <span class="input-prepend input-group">
                            <label class="fl">开始时间：</label>
                            <input type="text" class="Wdate" onClick="WdatePicker({dateFmt:'MM/dd/yyyy'})" id="startTime" value="${sTime!''}" placeholder="请选择日期"/>
                            <i class="fl">--</i>
                            <input type="text" class="Wdate" onClick="WdatePicker({dateFmt:'MM/dd/yyyy'})" id="endTime" value="${eTime!''}" placeholder="请选择日期"/>
                        </span>
                        <a href="javascript:search()" class="btn  btn-12 h34 ml2">查询</a>   
                        <a href="javascript:emptyInput()" class="btn  reset btn-12 h34 ml2">重置</a>                                              
                    </div>
                    <div class="c-data mb70">
                        <table>
                            <thead>
                                <tr>
                                    <th>交易时间</th>
                                    <th>交易类别</th>
                                    <th>金额</th>
                                    <th width="25%">合同（协议）编号</th>
                                </tr>
                            </thead>
                            <tbody>
                                <#list dataList as one>
                                <tr>
                                    <td>${one.create_time}</td>
                                    <td>${one.description}</td>
                                    <td>${one.bank_money}元</td>
                                    <td>无</td>
                                </tr>
                                </#list>
                         </tbody>
                        </table>
                    </div>  
                    <!-- 页码 -->
                    <center>
                    	共${totalCount}条记录, ${pageNo}/${pages} 页
						<#if (pageNo?int-5>=1) >
							<a  href="${BASE_PATH}/fund/jydetail.htm?pageNo=${pageNo-5}&sTime=${sTime!''}&eTime=${eTime!''}">上5页</a>
						</#if>
						<#if (pageNo>1) >
							<a  href="${BASE_PATH}/fund/jydetail.htm?pageNo=${pageNo-1}&sTime=${sTime!''}&eTime=${eTime!''}">上一页</a>
						</#if>
						<#if (pages>0) >
							<#list 1..pages as one>
								<#if (pageNo-one)==3>
									...
								<#elseif ((pageNo-one)<=2 && (pageNo-one)>=1) >
									<a  href="${BASE_PATH}/fund/jydetail.htm?pageNo=${one}&sTime=${sTime!''}&eTime=${eTime!''}">${one}</a>
								<#elseif pageNo==one>
							       ${one}
				              	<#elseif  ((one-pageNo)<=2 && (one-pageNo)>=1) >
										<a  href="${BASE_PATH}/fund/jydetail.htm?pageNo=${one}&sTime=${sTime!''}&eTime=${eTime!''}">${one}</a>
								<#elseif (one-pageNo)==3>
										...
								</#if>
							</#list>
						</#if>
						<#if pageNo<pages >
							<a  href="${BASE_PATH}/fund/jydetail.htm?pageNo=${pageNo++1}&sTime=${sTime!''}&eTime=${eTime!''}">下一页</a>
						</#if>
						<#if (pageNo+5)<=pages >
							<a  href="${BASE_PATH}/fund/jydetail.htm?pageNo=${pageNo+5}&sTime=${sTime!''}&eTime=${eTime!''}">下5页</a>
						</#if>
		           </center>
                </div>
           </div>    
                <div class="form-group">
                    <div class="text-center">
                        <a  href="#" onclick="close_operation()" class="btn btn-s btn-15" >关闭</a>
                    </div>
                </div> 
           </div>

               
        </div>
    </div>
</div>
<script>
	$(function(){
		$("#startTime").daterangepicker({
		startDate:'01/01/2012',
		minDate:'01/01/2012'
		});
	})
	
	function emptyInput(){
		$("input").each(function(){
			$(this).val("");
		});
	}
	function search(){
		var stime=$("#startTime").val();
		var etime=$("#endTime").val();
		location.href="${BASE_PATH}/fund/jydetail.htm?sTime="+stime+"&eTime="+etime+"";
	}
</script>
<#include "foot_bus.ftl">